const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/",
  name: "Home",
  component: Layout,
  redirect: "/userList",
  meta: {
    icon: "homeFilled",
    title: "用户",
    rank: 0
  },
  children: [
    {
      path: "/userList",
      name: "UserList",
      component: () => import("@/views/welcome/userList.vue"),
      meta: {
        title: "用户管理",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/transactionRecord",
      name: "RransactionRecord",
      component: () => import("@/views/welcome/transactionRecord.vue"),
      meta: {
        title: "交易记录",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/separationRecord",
      name: "SeparationRecord",
      component: () => import("@/views/welcome/separationRecord.vue"),
      meta: {
        title: "分润记录",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/order",
      name: "Order",
      component: () => import("@/views/welcome/order.vue"),
      meta: {
        title: "订单",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    }
  ]
} as RouteConfigsTable;
